@echo off
set ProjectName=%~1
set OutDir=%~2

if %OutDir:~-1%==\ (
	set OutDir=%OutDir:~0,-1%
)

if not exist "%OutDir%" (
	@md "%OutDir%"
)
..\tools\lng.generator.exe -nc -ol "%OutDir%" %ProjectName%.lng >nul

if exist "help" (
	@copy /Y "help\*.hlf" "%OutDir%" >nul
)

